<template>
	<view class="img">
		<view class="header">
			<view class="jt"  @tap="go">
				<
			</view>
			
			<view class="person">
				<text>个人中心</text>
			</view>
			
		</view>
		
		
		<view class="content">
			
			<view class="tui" @tap="tui">
				<text>退出登录</text>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			go(){
				uni.navigateBack({
					delta:0
				})
			},
			tui(){
				uni.switchTab({
					url:"../user"
				})
				try {
				    uni.removeStorageSync('token');
				} catch (e) {
				    // error
				}
				
			}
		}
	}
</script>

<style lang="scss">
.img{
	padding-top: var(--status-bar-height);
}
.header{
	width: 100%;
	height: 60px;
	background-color: #354e44;
	overflow: hidden;
}
.jt{
	font-size: 28px;
	color: #fff;
	margin-top: 10px;
}
.person{
font-size: 18px;
font-weight: 600;
margin-left: 150px;
margin-top: -25px;
text{
	color: #fff;
	}
}
.content{
	background-color: #eeeae5;
	width: 100%;
	height: 200px;
	overflow: hidden;
}
.tui{
	width: 100px;
	height: 30px;
	background-color:#354e44;
	margin-left: 150px;
	margin-top: 50px;
	text{
		color: #fff;
		line-height: 30px;
		margin-left: 15px;
	}
}
</style>
